package cn.wolfcode.luowowo.search.repository;

import cn.wolfcode.luowowo.search.domain.DestinationTemplate;
import cn.wolfcode.luowowo.search.domain.TravelTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

/**
 * 目的地spring-data-jpa接口
 */
@Repository
public interface IDestinationSearchRepository extends ElasticsearchRepository<DestinationTemplate, Long>{
    /**
     * 通过名字查询目的地
     * @param name
     * @return
     */
    DestinationTemplate findByName(String name);
}
